#include<set>
#include<iostream>
#include<string>
#include"RBTree.h"
//#include"RBTree.hpp"

using namespace std;
using namespace fmxstd;

bool d[100];

int main(){
	set<int> q;

	RBTree<int> myRBTree;
	for (int i = 0; i < 39; i++) {
		myRBTree.insert(i);
	}
	for (int i = 0; i < 36; i++) {
		myRBTree.remove(i);
	//	//cout << i << " :" << myRBTree.number<<"\n";
	}


	//myRBTree.insert(200);
	int ans = myRBTree.isRBTree();
	if (ans > 0) {
		cout <<"是红黑树，高度为："<< ans << "\n";
	}
	else {
		cout << "不是红黑树。" << "\n";
	}
	int a;
	cin >> a;
}